package org.javaboy.vhr.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.javaboy.vhr.model.MailSendLog;

import java.util.Date;
import java.util.List;

@Mapper
public interface MailSendLogMapper {

    Integer updateMailSendLogStatus(@Param("msgId") String msgId, @Param("status") Integer status);

    Integer insert(MailSendLog mailSendLog);

    List<MailSendLog> getMailSendLogsByStatus();

    Integer updateCount(@Param("msgId") String msgId, @Param("date") Date date);

    Integer deleteByEmpId(@Param("empId") Integer empId);

    MailSendLog selectByMsgId(@Param("msgId") Integer msgId);
}
